﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YssTestMain
{
    public class Student
    {
        public Student(string name, string address, int age, string keyValue, string parNodeID, Student parNode)
        {
            this.name = name;
            this.address = address;
            this.age = age;
            this.keyValue = keyValue;
            this.nodeID = keyValue;
            this.parNodeID = parNodeID;
            this.parNode = parNode;
        }
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string address;

        public string Address
        {
            get { return address; }
            set { address = value; }
        }
        private int age;

        public int Age
        {
            get { return age; }
            set { age = value; }
        }

        private string keyValue;

        public string KeyValue
        {
            get { return keyValue; }
            set { keyValue = value; }
        }

        private string nodeID;

        public string NodeID
        {
            get { return nodeID; }
            set { nodeID = value; }
        }

        private string parNodeID;

        public string ParNodeID
        {
            get { return parNodeID; }
            set { parNodeID = value; }
        }

        private Student parNode;

        public Student ParNode
        {
            get { return parNode; }
            set { parNode = value; }
        }

        public object YssParseToTreeNode()
        {
            return this;
        }
    }
}
